from rest_framework.serializers import ModelSerializer
from testbanner import models

class TestBannerSerializer(ModelSerializer):
    class Meta:
        model = models.TestBanner
        fields = '__all__'

#图书序列化
class BookSerializer(ModelSerializer):
    class Meta:
        model = models.Book
        fields = '__all__'

